home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / CIIGSIncludes / Loader.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-03  |  2.7 KB  |  77 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: Loader.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-90
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9. #ifndef __TYPES__
  10. #include <TYPES.h>
  11. #endif
  12.  
  13. #ifndef __LOADER__
  14. #define __LOADER__
  15.  
  16.  
  17. /* Error Codes */
  18. #define idNotFound 0x1101  /* segment/application/entry not found */
  19. #define idPathnameErr 0x1103
  20. #define idNotLoadFile 0x1104  /* file is not a load file */
  21. #define idBusyErr 0x1105  /* system loader is busy */
  22. #define idFilVersErr 0x1107  /* file version error */
  23. #define idUserIDErr 0x1108  /* user ID error */
  24. #define idSequenceErr 0x1109  /* segnum out of sequence */
  25. #define idBadRecordErr 0x110A  /* illegal load record found */
  26. #define idForeignSegErr 0x110B  /* segment is foreign */
  27. struct InitialLoadOutputRec {
  28.    Word userID; /*  */
  29.    Pointer startAddr; /*  */
  30.    Word dPageAddr; /*  */
  31.    Word buffSize; /*  */
  32. } ;
  33. typedef struct InitialLoadOutputRec InitialLoadOutputRec, *InitialLoadOutputRecPtr;
  34. struct RestartOutRec {
  35.    Word userID; /*  */
  36.    Pointer startAddr; /*  */
  37.    Word dPageAddr; /*  */
  38.    Word buffSize; /*  */
  39. } ;
  40. typedef struct RestartOutRec RestartOutRec, *RestartOutRecPtr;
  41. struct LoadSegNameOut {
  42.    Pointer segAddr;
  43.    Word userID;
  44.    Word fileNum;
  45.    Word segNum; /*   */
  46. } ;
  47. typedef struct LoadSegNameOut LoadSegNameOut, *LoadSegNameOutPtr;
  48. struct UnloadSegOutRec {
  49.    Word userID; /*  */
  50.    Word fileNum; /*  */
  51.    Word segNum; /*  */
  52. } ;
  53. typedef struct UnloadSegOutRec UnloadSegOutRec, *UnloadSegOutRecPtr;
  54. extern pascal void GetLoadSegInfo() inline(0x0F11,dispatcher);
  55. extern pascal Pointer GetPathname() inline(0x1111,dispatcher);
  56. extern pascal Pointer GetPathname2() inline(0x2211,dispatcher);
  57. extern pascal Word GetUserID() inline(0x1011,dispatcher);
  58. extern pascal Word GetUserID2() inline(0x2111,dispatcher);
  59. extern InitialLoadOutputRec InitialLoad();
  60. extern InitialLoadOutputRec InitialLoad2();
  61. extern pascal Pointer LGetPathname() inline(0x1111,dispatcher);
  62. extern pascal Pointer LGetPathname2() inline(0x2211,dispatcher);
  63. extern pascal void LoaderInitialization() inline(0x0111,dispatcher);
  64. extern pascal void LoaderReset() inline(0x0511,dispatcher);
  65. extern pascal void LoaderShutDown() inline(0x0311,dispatcher);
  66. extern pascal void LoaderStartUp() inline(0x0211,dispatcher);
  67. extern pascal Boolean LoaderStatus() inline(0x0611,dispatcher);
  68. extern pascal Word LoaderVersion() inline(0x0411,dispatcher);
  69. extern LoadSegNameOut LoadSegName();
  70. extern pascal Pointer LoadSegNum() inline(0x0B11,dispatcher);
  71. extern pascal void RenamePathname() inline(0x1311,dispatcher);
  72. extern RestartOutRec Restart();
  73. extern UnloadSegOutRec UnloadSeg();
  74. extern pascal void UnloadSegNum() inline(0x0C11,dispatcher);
  75. extern pascal Word UserShutDown() inline(0x1211,dispatcher);
  76. #endif
  77.